package com.cbgolf.oa.presenter;

import com.cbgolf.oa.contract.IStatisticsListDetailsContract.IStatisticsListDetailsModel;
import com.cbgolf.oa.contract.IStatisticsListDetailsContract.IStatisticsListDetailsPresenter;
import com.cbgolf.oa.contract.IStatisticsListDetailsContract.IStatisticsListDetailsView;
import com.cbgolf.oa.entity.ListBean;
import com.cbgolf.oa.model.StatisticsListDetailsModelImp;

/**
 *
 * @author lq
 * @date 2018/5/7
 */

public class StatisticsListDetailsPresenterImp implements IStatisticsListDetailsPresenter {

  private IStatisticsListDetailsView view;
  private IStatisticsListDetailsModel model;

  public StatisticsListDetailsPresenterImp(IStatisticsListDetailsView view) {
    this.view = view;
    this.model = new StatisticsListDetailsModelImp();
  }

  @Override
  public void requestData(int dataType, int requestEvent,ListBean data) {
    view.showProgress();
    model.requestData(dataType,requestEvent,data);
  }
}
